<form id="place">
<table width="60%">
    <tbody>
    <tr>
        <td width="15%">Piscinas:</td>
        <td>
            <table>
                <tbody id="cont_places">
                {foreach item=pool from=$places}
                <tr height="24" id="{$pool.plc_id}">
                    <td>
                        <p style="padding: 2px;margin:0;" id="plc_name_{$pool.plc_id}">{$pool.plc_name}</p>
                        <script type="text/javascript">
                            inplaceeditor('{$pool.plc_id}','plc_name_{$pool.plc_id}','Tourney/WP_Tourney.php?action=6');
                        </script>
                    </td>
                    <td>
                        <img src="images/cross.png" class="plus_minus" alt="Borrar" title="Borrar" onclick="if(confirm_plc({$pool.plc_id})) deletePlace('cont_places','{$pool.plc_id}','Tourney/WP_Tourney.php?action=8');" />
                    </td>
                </tr>
                {/foreach}
                </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td>Nueva piscina:</td>
        <td>
            <input id="plc" name="place" size="20" onfocus="switchColor('plc',&#034;#999999&#034;);" />
            <input class="button" type="button" value="Crear" onclick="if(validate_new_plc()) send('place','cont_places','Tourney/WP_Tourney.php?action=7');" />
        </td>
    </tr>
    </tbody>
</table>
</form>